package com.wanghua.spring.interceptor.xml;

import org.springframework.aop.AfterReturningAdvice;
import java.lang.reflect.Method;

//后置通知（Spring）
public class MethodAfterInterceptor implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object value, Method method, Object[] args, Object instance) throws Throwable {
        String type = (String) args[0];
        System.out.println("方法 " + method.getName() + "运行完毕，返回值为：" + value);
    }
}
